﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NSNPerformanceRptList.aspx.cs" Inherits="WMS6.Web.CustomizeReport.NSNPerformanceRptList" %>
<%@ PreviousPageType VirtualPath="~/CustomizeReport/NSNPerformanceRptQuery.aspx" %>
<%@ Register src="../UserControls/Pager.ascx" tagname="Pager" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>NSN Performance Report</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
     <link href="../Css/style.css" type="text/css" rel="stylesheet" />
     <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script> 
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>    
    <script src="../Js/checkbox.js" type="text/javascript"></script>    
    <script type="text/javascript">
    
      window.onload = function(){
            initListPage();
        }
        
        function returnSearch()
        {
            var from = document.getElementById("hdnFrom").value;
            if(from != "")
            {
                window.location.href = "NSNPerformanceRptQuery.aspx";
            }
            else
            {
                window.history.go(-1);
            }
        }
    </script>
</head>
<body>
    <form id="F16031" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        
        <div id="div_List_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblNSNPerformanceRptList" runat="server" CssClass="label_header"  Text="NSN Performance Report" meta:resourcekey="lblUom"></asp:Label></td>
                      <td><asp:Button ID="btnRefresh" runat="server" CssClass="button" Enabled="False" 
                              Text="<%$Resources:ButtonResource,btnRefresh%>"  
                              onclick="btnRefresh_Click" /></td>
                    </tr>
            </table>
        </div>
        <div class="blank8">
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>                
                
                 <div id="div_List">
                 <div id="div_List_msg">
                        <asp:Label ID="lblMsg" runat="server" CssClass="label_message"></asp:Label>
                    </div>
                    <asp:GridView ID="gvNSNPerformanceRptList" runat="server" AutoGenerateColumns="False" AllowSorting="True"
                        CssClass="gridview"  PageSize="20"   oninit="gvNSNPerformanceRptList_Init" 
                            Width="6000px" onrowdatabound="gvNSNPerformanceRptList_RowDataBound" 
                         onsorting="gvNSNPerformanceRptList_Sorting" 
                         meta:resourcekey="gvNSNPerformanceRptList"  >
                        <FooterStyle CssClass="GridViewFooterStyle" />
                        <RowStyle CssClass="GridViewRowStyle" />
                        <HeaderStyle CssClass="GridViewHeaderStyle" />
                        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                        <Columns>
                            <asp:BoundField HeaderText="序号" FooterText="序号" 
                                meta:resourcekey="BoundField">
                                    <ItemStyle CssClass="GridViewRowWidth_40" />
                                </asp:BoundField>
                               
                                <asp:TemplateField meta:resourcekey="TemplateField">
                                    <HeaderTemplate>
                                        <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('16031','gvNSNPerformanceRptList');" onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                        <asp:CheckBox ID="CheckBox1" runat="server" 
                                            onclick="selectAll(this,'gvNSNPerformanceRptList');" 
                                            meta:resourcekey="CheckBox1" /> 
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chbSelect" runat="server" 
                                            meta:resourcekey="chbSelect" />
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        <asp:CheckBox ID="CheckBox2" runat="server" 
                                            onclick="selectAll(this,'gvNSNPerformanceRptList');" 
                                            meta:resourcekey="CheckBox2" /> 
                                    </FooterTemplate>
                                    <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50"/>
                                    <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50"/>
                                </asp:TemplateField>
                                 <asp:BoundField DataField="R_VENDOR_CONTACT" HeaderText="客户申请人" 
                                FooterText="客户申请人" SortExpression="R_VENDOR_CONTACT" 
                              >
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="R_VENDOR_CITY" HeaderText="地区" 
                                FooterText="地区" SortExpression="R_VENDOR_CITY" >
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:BoundField DataField="R_VENDOR_ID" HeaderText="WBS" FooterText="WBS" 
                                SortExpression="R_VENDOR_ID" >
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:BoundField DataField="R_VENDOR_NAME" HeaderText="SWH Name" FooterText="SWH Name" 
                                SortExpression="R_VENDOR_NAME"  >
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:BoundField DataField="R_VENDOR_PHONE" HeaderText="申请人电话" FooterText="申请人电话" 
                                SortExpression="R_VENDOR_PHONE" >
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:BoundField DataField="R_CREATED_BY" HeaderText="厂商接件人" FooterText="厂商接件人" 
                                SortExpression="SKU_ID"  >
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="R_RECEIPT_ID" HeaderText="备件管理服务订单号" FooterText="备件管理服务订单号" 
                                SortExpression="R_RECEIPT_ID"  >
                                    <ItemStyle CssClass="GridViewRowWidth_150" />
                                </asp:BoundField>
                                 <asp:TemplateField FooterText="板件名" HeaderText="板件名" 
                                SortExpression="RD_DESCR"  >
                                    <ItemTemplate>
                                        <asp:Label ID="lblSkuDescr" runat="server" 
                                            Text='<%# Eval("RD_DESCR").ToString() %>' meta:resourcekey="lblSkuDescr"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_200" />       
                                 </asp:TemplateField>
                                 
                                 <asp:BoundField DataField="RD_SKU_ID" HeaderText="故障板件号" FooterText="故障板件号" 
                                SortExpression="RD_SKU_ID" meta:resourcekey="SKU_ID" >
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="R_LOT_ATTR02" HeaderText="故障件版本" FooterText="故障件版本" 
                                SortExpression="R_LOT_ATTR02" >
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="R_LOT_ATTR01" HeaderText="故障板件货主" FooterText="故障板件货主" 
                                SortExpression="R_LOT_ATTR01" >
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>                                
                                 <asp:BoundField DataField="R_EXTERNAL_LOT" HeaderText="故障件序列号" FooterText="故障件序列号" 
                                SortExpression="R_EXTERNAL_LOT"  >
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="R_RAM" HeaderText="RMA" FooterText="RMA" 
                                SortExpression="R_RAM"  >
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>                                                                
                                   <asp:BoundField DataField="OD_SKU_ID" HeaderText="一线备件使用板件号" FooterText="一线备件使用板件号" 
                                SortExpression="OD_SKU_ID"  >
                                    <ItemStyle CssClass="GridViewRowWidth_150" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="OD_LOT_ATTR02" HeaderText="一线备件使用板件版本" FooterText="一线备件使用板件版本" 
                                SortExpression="OD_LOT_ATTR02" >
                                    <ItemStyle CssClass="GridViewRowWidth_150" />
                                </asp:BoundField>                                                         
                                 <asp:BoundField DataField="OD_EXTERNAL_LOT" HeaderText="一线备件使用板件序列号" FooterText="一线备件使用板件序列号" 
                                SortExpression="OD_EXTERNAL_LOT" >
                                    <ItemStyle CssClass="GridViewRowWidth_150" />
                                </asp:BoundField>
                                   <asp:BoundField DataField="OD_LOT_ATTR01" HeaderText="一线备件使用板件货权" FooterText="一线备件使用板件货权" 
                                SortExpression="OD_LOT_ATTR01" >
                                    <ItemStyle CssClass="GridViewRowWidth_150" />
                                </asp:BoundField>     
                                
                                
                                 <asp:BoundField DataField="MD_SKU_ID" HeaderText="补货到一线备件库板件号" FooterText="补货到一线备件库板件号" 
                                SortExpression="MD_SKU_ID"  >
                                    <ItemStyle CssClass="GridViewRowWidth_150" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="MD_LOT_ATTR02" HeaderText="补货到一线备件库版本" FooterText="补货到一线备件库版本" 
                                SortExpression="MD_LOT_ATTR02"  >
                                    <ItemStyle CssClass="GridViewRowWidth_150" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="MD_EXTERNAL_LOT" HeaderText="补货到一线备件库序列号" FooterText="补货到一线备件库序列号" 
                                SortExpression="MD_EXTERNAL_LOT" meta:resourcekey="SKU_ID" >
                                    <ItemStyle CssClass="GridViewRowWidth_150" />
                                </asp:BoundField>
                                          <asp:BoundField DataField="R_RECEIPT_ID" HeaderText="备件管理服务订单号" FooterText="备件管理服务订单号" 
                                SortExpression="R_RECEIPT_ID" >
                                    <ItemStyle CssClass="GridViewRowWidth_150" />
                                </asp:BoundField>        
                                
                                 <asp:BoundField DataField="MD_LOT_ATTR01" HeaderText="补货到一线备件库原货主" FooterText="补货到一线备件库原货主" 
                                SortExpression="MD_LOT_ATTR01" >
                                    <ItemStyle CssClass="GridViewRowWidth_150" />
                                </asp:BoundField>                                
                                
                                  <asp:BoundField DataField="M_UDF3" HeaderText="出库类型" FooterText="出库类型" 
                                SortExpression="M_UDF3" >
                                    <ItemStyle CssClass="GridViewRowWidth_150" />
                                </asp:BoundField>     
                                  <asp:BoundField DataField="MD_REMARK" HeaderText="出库明细类型" FooterText="出库明细类型" 
                                SortExpression="MD_REMARK" >
                                    <ItemStyle CssClass="GridViewRowWidth_150" />
                                </asp:BoundField>   
                                
                                
                                
                                <asp:BoundField DataField="SAP" HeaderText="SAP服务类别" FooterText="SAP服务类别" 
                                SortExpression="SAP" >
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                
                                  <asp:TemplateField FooterText="维修等级" HeaderText="维修等级" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblUf1" runat="server" 
                                            Text='<%# Eval("UDF1") %>' ></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField>   
                              
                                 <asp:BoundField DataField="SKU_CLASS_ID" HeaderText="设备类别" FooterText="设备类别" 
                                SortExpression="SKU_CLASS_ID"  >
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:TemplateField FooterText="客户下单时间" HeaderText="客户下单时间" 
                                SortExpression="M_MOVEMENT_DATE" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblMCreatedDate" runat="server" 
                                            Text='<%# GetPreferenceShortDate(Eval("M_MOVEMENT_DATE").ToString()) %>' ></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField>   
                                   <asp:TemplateField FooterText="维修件发货时间" HeaderText="维修件发货时间" 
                                SortExpression="M_APPROVED_DATE" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblMApprovedDate" runat="server" 
                                            Text='<%# GetPreferenceShortDate(Eval("M_APPROVED_DATE").ToString()) %>' ></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField>   
                                 <asp:TemplateField FooterText="POD" HeaderText="POD" 
                                SortExpression="UDF10" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblUDF10" runat="server" 
                                            Text='<%# GetPreferenceShortDate(Eval("UDF10").ToString()) %>' ></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField>                                  
                                 <asp:TemplateField FooterText="客户要求送达时间" HeaderText="客户要求送达时间" 
                                SortExpression="UDF2" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblUDF2" runat="server" 
                                            Text='<%# GetPreferenceShortDate(Eval("UDF2").ToString()) %>' ></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField>   
                                  <asp:TemplateField FooterText="实际服务时间" HeaderText="实际服务时间" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblMHour" runat="server" 
                                            Text='<%# Eval("M_HOUR") %>' ></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField>  
                                    <asp:BoundField DataField="M_REMARK" HeaderText="客户收件人" FooterText="客户收件人" 
                                SortExpression="M_REMARK"  >
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                               <asp:BoundField DataField="R_UDF1" HeaderText="故障描述" FooterText="故障描述" 
                                SortExpression="R_UDF1"  >
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                  <asp:TemplateField FooterText="是否超时" HeaderText="是否超时" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblIsTime" runat="server" 
                                            Text='' ></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField>   
                                   <asp:BoundField DataField="R_UDF2" HeaderText="EOMS工单号" FooterText="EOMS工单号" 
                                SortExpression="R_UDF2"  >
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>                                
                                 <asp:BoundField DataField="R_REMARK" HeaderText="备注" FooterText="备注" 
                                SortExpression="R_REMARK" >
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                   <asp:TemplateField FooterText="故障件到仓库的接收时间" HeaderText="故障件到仓库的接收时间" 
                                SortExpression="R_RECEIPT_DATE" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblRReceivedDate" runat="server" 
                                            Text='<%# GetPreferenceShortDate(Eval("R_RECEIPT_DATE").ToString()) %>' ></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_200" />
                                </asp:TemplateField>   
                                <asp:TemplateField FooterText="故障件到仓库的时间（中心库）" HeaderText="故障件到仓库的时间（中心库）" 
                                SortExpression="M_UDF9" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblMudf9" runat="server" 
                                            Text='<%# GetPreferenceShortDate(Eval("M_UDF9").ToString()) %>' ></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_200" />
                                </asp:TemplateField>   
                                       <asp:BoundField DataField="R_UDF3" HeaderText="EOMS关单月份-日期" FooterText="EOMS关单月份-日期" 
                                SortExpression="R_UDF3" >
                                    <ItemStyle CssClass="GridViewRowWidth_200" />
                                </asp:BoundField>
                               
                        </Columns>
                        
                    </asp:GridView>                   
                 </div>
                    <div id="div_pager">
                        <uc1:Pager ID="PagerFooter" runat="server"  OnFirst="btnFirst_Click" OnPrevious="btnPrevious_Click" OnNext="btnNext_Click" OnLast="btnLast_Click" OnGoTo="GoTo_Click"/>
                    </div>
                <input type="hidden" runat="server" id="hdnFrom" />
                
            </ContentTemplate>
       </asp:UpdatePanel>
        <input type="hidden" id="hdnActionID" runat="server" />
        
        <div id="div_List_bottom">
            <table>
                <tr>
                    <td>
                        <asp:Button ID="btnSearch" runat="server" Text="<%$Resources:ButtonResource,btnNewSearch%>" CssClass="button" Enabled="False" 
                            OnClientClick="javascript:window.location.href='NSNPerformanceRptQuery.aspx';return false;"  />
                    </td>
                    <td>
                        <asp:Button ID="btnReSearch" runat="server" Text="<%$Resources:ButtonResource,btnReSearch%>" CssClass="button" Enabled="False" 
                            OnClientClick="javascript:returnSearch();return false;" />
                    </td>
                    <td>
                        <asp:Button ID="btnList" runat="server" Text="<%$Resources:ButtonResource,btnList%>" CssClass="button" Enabled="False" 
                           onclick="btnList_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnExport" runat="server" Text="<%$Resources:ButtonResource,btnExport%>" CssClass="button" Enabled="False" 
                             onclick="btnExport_Click" />
                    </td>
                </tr>
            </table>
        </div>      
        
    </div>
    </form>
</body>
</html>
